import axios from "../utils/http.js"
export default{
//    轮播图获取数据
     getCarousel(data={}){
        return axios({
            url: "resources/carousel",
            method: "POST",
            data: data
        })
     },
    // /product/getHotProduct 获取热门内容
    getPromoProduct(data={}){
        //data = {"categoryName":"电视机"}
        return axios({
            url: "/product/getPromoProduct",
            method: "POST",
            data: data
        })
    },

// /product/getHotProduct 获取热门内容
getHotProduct(data={}){
        //data = categoryName: ["电视机", "空调", "洗衣机"]
        return axios({
            url: "/product/getHotProduct",
            method: "POST",
            data: data
        })
    },
}